<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>before和after样式</title>
		<style>
			#s{
				height: 40px;
				width: 500px;
				background-color: greenyellow;
			}
			#s:before{
			   content: '教育改变生活';
			   color: firebrick;
			   font-size: 40px;
			   background-color: aqua;
			}
			#s:after{
				content: '哦耶';
				color: brown;
				
			}
		</style>
	</head>
	<body>
		<div id="s">We change lives</div>
	</body>
</html>